import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ion:layers-outline',
      keepAlive: true,
      order: 2000,
      title: $t('inventory.title'),
      authority: ['Wms.InventoryManagements'], // 库存管理权限
    },
    name: 'Inventory',
    path: '/inventory',
    children: [
      {
        meta: {
          title: $t('inventory.inventoryList.title'),
          authority: ['Wms.InventoryManagements'], // 库存管理权限
        },
        name: '库存管理',
        path: '/inventory/stock',
        component: () => import('#/views/inventory/inventoryManagement/index.vue'),
      }
    ],
  },
];

export default routes;
